package cn.com.duiba.millionaire.center.biz.remoteservice;

import cn.com.duiba.millionaire.center.api.dto.MillionaireActivityDto;
import cn.com.duiba.millionaire.center.api.remoteservice.RemoteMillionaireActivityService;
import cn.com.duiba.millionaire.center.api.requestParam.MillionaireActivityRequestParam;
import cn.com.duiba.millionaire.center.biz.service.MillionaireActivityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * Created by Administrator on 2018/1/20.
 */
@RestController
public class RemoteMillionaireActivityServiceImpl implements RemoteMillionaireActivityService {
    @Autowired
    private MillionaireActivityService millionaireActivityService;
    @Override
    public List<MillionaireActivityDto> getActivityByIds(List<Long> activityIds) {
        return millionaireActivityService.getActivityByIds(activityIds);
    }

    @Override
    public Integer countMillionaireActivityList(MillionaireActivityRequestParam param) {
        return millionaireActivityService.countMillionaireActivityList(param);
    }

    @Override
    public List<MillionaireActivityDto> getMillionaireActivityList(MillionaireActivityRequestParam param) {
        return millionaireActivityService.getMillionaireActivityList(param);
    }

    @Override
    public MillionaireActivityDto findMillionaireActivityById(Long id) {
        return millionaireActivityService.findMillionaireActivityById(id);
    }

    @Override
    public Boolean openOrDelete(Long id, Integer status) {
        return millionaireActivityService.openOrDelete(id, status);
    }

    @Override
    public Boolean saveOrUpdateMillionaireActivity(MillionaireActivityDto dto) {
        return millionaireActivityService.saveOrUpdateMillionaireActivity(dto);
    }

    @Override
    public String checkActivityAddMainMeeting(List<Long> ids,Integer actType) {
        return millionaireActivityService.checkActivityAddMainMeeting(ids,actType);
    }

    @Override
    public List<MillionaireActivityDto> findAvailableActivity(Integer actType) {
        return millionaireActivityService.findAvailableActivity(actType);
    }
}
